﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


public class SceneActor:SceneDisplayObject
{
	private SceneActorAvatar _avatar;
	public SceneActorAvatar ActorAvatar
	{
		get
		{
			if (_avatar == null)
			{
				if (display != null)
					_avatar = display as SceneActorAvatar;
			}
			return _avatar;
		}
	}

	public void PlayAnimation(AnimationType type){
		if (ActorAvatar != null) {
			ActorAvatar.PlayAnimation (type);
		}
	}

    public void PlayAnimationName(string name)
    {
        if (ActorAvatar != null)
            ActorAvatar.PlayAnimation(name);
    }


}
